import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import api from './config/api.js'
import tools from '@/utils/common.js'
import publicjs from '@/utils/publicJs.js'
import config from '@/config/index.js'
import '@/utils'
//引入拦截
import './utils/interceptor.js';  
// 引入全局TuniaoUI
import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)

import store from './store'
// 引入TuniaoUI提供的vuex简写方法
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)

Vue.config.productionTip = false
Vue.prototype.$publicjs = publicjs
Vue.prototype.$config = config
Vue.prototype.$api = api
Vue.prototype.$tools = tools
App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif
